<?php if (!defined('THINK_PATH')) exit();?><html>

	<head>
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta content="yes" name="apple-touch-fullscreen">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta charset="utf-8">
		<title>社区留言</title>
		<link href="http://j.pengxun.cn/content/wapmobile/20160303/scripts/plugin/photoswipe/photoswipe.css" rel="stylesheet">
		<link href="http://j.pengxun.cn/content/css/??layer/layer.css,151211/replaybox.css" rel="stylesheet">
		<link href="http://j.pengxun.cn/content/wapmobile/20160303/css/??add.css,userlevel.css,main.css?v=001" rel="stylesheet">
		<style>
			.on dl,
			.in dl {
				display: -moz-box;
				display: -ms-flexbox;
				display: -webkit-box;
				display: -webkit-flex;
				display: box;
				display: flexbox;
				display: flex;
				flex-flow: row;
			}
			.face img{
				display: inline;
			}
			
			dd {
				flex: 1;
				-webkit-box-flex: 1;
			}
		</style>
	</head>

	<body>
		<div class="wrap center rel" style="padding-top:0;" id="top">
			<div class="w_head rel t_c">
				<img src="http://i.pengxun.cn/images/bms1/109_app[1].jpg" style="width:100%;">
				<dl id="logo" class="logo abs" fid="7100">
					<dt>
                <img src="__PUBLIC__/images/check_alt.png" width="100%">
            </dt>
					<dd style="height: 18px; font-size: 12px;">留言量&nbsp;&nbsp;<?php echo ($commentNum); ?></dd>
					<dd style="height: 18px; font-size: 12px;">互动量&nbsp;&nbsp;<?php echo ($sumNum); ?></dd>
				</dl>
			</div>
			<!--公告 Start-->
			<aside class="ggao c858" style="border-top:none;">
				<i></i>
				<label>公告：</label>
				<span style="color:#333;">概率论与数理统计教学互动平开始使用</span>
			</aside>
			<!--公告 End-->
			<!--公告 End-->
			<!--顶部广告位01-->

			<style type="text/css">
				.advtable {
					background-color: white;
				}
				
				.advtable a {
					color: #0c6ad4;
					font-size: 14px;
				}
			</style>

			<!--顶部广告位01end-->
			<!--文章start-->
			<div id="art-content">
				<?php if(is_array($community)): foreach($community as $key=>$community): ?><ul class="content" style="position:relative;border-bottom: 1px solid #d6d6d6;">
						<li class="on">
							<dl class="clearfix">
								<dd style="position: relative; width: 250px;">
									<label class="f13 clearfix">
                        			<em class="user-name"><?php echo ($community["name"]); ?></em>
                    			</label>
									<label class="f12 clearfix">
                        			<span class="c858"><em><?php echo ($community["time"]); ?></em></span>
                        			<span class="c858 fr" style="max-width:40%;overflow:hidden;height:16px;"></span>
                    			</label>
									<div class="f16" style="line-height:1.5;word-break:break-word;word-wrap:normal;">
										<div id="contc-2168703">
											<a class="face" href="/t/d-2168703"><?php echo (replace_phiz($community["content"])); ?></a>
										</div>
										<div class="contc-all" isshow="0" id="contcall-2168703"></div>
										<div style="margin-top:5px;margin-bottom:5px;" class="slt">
										</div>
										<div class="on_img clearfix">
										</div>
									</div>
									<div class="gj c858 clearfix">
										<span class="t_r" id="replybtn-1zan2168703" onclick="">
                                		<i class="gj_za"></i>赞<em id="">0</em>
                           		 	</span>
										<span onclick="window.location.href='<?php echo U('Community/reply');?>?commentId=<?php echo ($community["id"]); ?>'">
                            			<i class="gj_p"></i>评<em id="commentCount_2168703"><?php echo M('community_reply')->where('commentId="'.$community['id'].'"')->count();?></em>
                        			</span>
									</div>
								</dd>
							</dl>
						</li>
						
						<?php
 if($REPLY = M('community_reply')->where('commentId="'.$community['id'].'"')->select()){ $reply = ture; $num = M('community_reply')->where('commentId="'.$community['id'].'"')->count(); } else $reply = false; ?>
						
						<?php if(($reply)): for ($i=0;$i<$num;$i+=1){?>
								<li class="in rel artcomment" id="" style="border-bottom: 1px solid #f1f1f1;">
									<dl class="clearfix">
										<div style="display: block; overflow: hidden; flex: 1;-webkit-box-flex:1">
											<label style="color: #5a85ce; margin-bottom: 10px;">
												<?php echo $REPLY[$i]['name'];?>:	
												<span class="fr c858 f12"><em><?php echo $REPLY[$i]['time'];?></em></span>
                                			</label>
											<p class="face" style="word-break:break-word;word-wrap:normal;">
												<?php echo replace_phiz($REPLY[$i]['replyContent']);?>	
											</p>
										</div>
									</dl>
									<?php if(($i == 0)): ?><i class="ping abs"></i><?php endif; ?>
								</li>
								<?php } endif; ?>
					</ul><?php endforeach; endif; ?>
			</div>
			<!--文章end-->
			
			<footer class="clearfix" id="navbuttom">
				<ul>
					<li style="width: 25%; text-align: center;padding-top:18px; border-right: solid 1px #D6D6D6 ; font-size:16px;" onclick="window.location.href='<?php echo U('Community/comment');?>'">留言</li>
					<li style="margin-left:5px;padding-top:18px; font-size:13px;" ><?php echo ($page); ?></li>
				</ul>
			</footer>
		</div>
	</body>
</html>